<template>
  <div>
    <b-menu-list v-if="!isSubmenuList" >
      <sidebar-item v-for="(menuMap,index) in menu" :base-path="basePath" :item="menuMap" />
    </b-menu-list>
    <sidebar-item v-else v-for="(menuMap,index) in menu"  :base-path="basePath" :item="menuMap" />
  </div>

</template>

<script>
import SidebarItem from "./sidebarItem";
export default {
  name: "sidebarList",
  components: {SidebarItem},
  props:{
    isSubmenuList: {
      type: Boolean,
      default: false
    },
    basePath: {
      type: String,
      default: ''
    },
    menu: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style scoped>

</style>
